chrome.devtools.panels.create("Eolink2Typescript",
  "",
  "/devtools/panel.html",
  function(panel) {
    panel.onShown.addListener((win)=>{
      win.postMessage('init', '*');

      chrome.devtools.network.onRequestFinished.addListener(
        function(req) {
          if (/\/api\/apiManagementPro\/Api\/getApi$/.test(req.request.url)){
            req.getContent((body)=>{
              win.postMessage(body, '*');
            })
          }
        }
      );
    })
  }
);